package cn.netbox.spring.service.impl;

import cn.netbox.spring.service.MyService;
import org.springframework.stereotype.Service;

/**
 * description:
 * date: 2021/12/1 15:39
 * author: Alex
 * version: 1.0
 */
@Service("myServiceProxy")
public class MyServiceProxy implements MyService {

    private MyService target = new MyServiceImpl();

    @Override
    public void bookRoom() {
        System.out.println("LOG:有人查房数");
        target.bookRoom();
        System.out.println("订房");
    }

    @Override
    public void pay() {
        target.pay();
        System.out.println("提交事务");
        System.out.println("Log:该顾客付款1000元");
    }
}
